import keyring

yourname = input("type your username\n" )

password = input("type your dashboard password into keychain\n" )
authkey = input("type your google auth key into keychain\n" )

## keychain key name
keychain = "xxx"
## keychain username
keychainUserName = "%s@dashboard" % yourname
keychainGAKeyName = "%s@google.auth" % yourname
## set ga
password = keyring.set_password(keychain, keychainUserName , password)

## set pwd
password = keyring.set_password(keychain, keychainGAKeyName , authkey)